// SoundEffectEditor.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "WaveTrack.h"
#include "ReverberationXAPO.h"
#include "EchoXAPO.h"
#include "Occlusion.h"

int main(void)
{
	
	TCHAR * strFileName = _TEXT("musicmono.wav");

	

	WaveTrack Wav1(strFileName);

	//EchoXAPO Echo(Wav1.GetSourceVoice(), Wav1.GetWfx());
	//ReverberationXAPO Reverb(Wav1.GetSourceVoice(), Wav1.GetWfx());
	Occlusion Occlus(Wav1.GetSourceVoice(), Wav1.GetWfx() );

	//Wav1.AddEffect(&Echo);
	//Wav1.AddEffect(&Reverb);
	Wav1.AddEffect(&Occlus);
	
	Wav1.Play();
	int i = 0;
	while(1){
		Wav1.SendBufferToPlay();
		if (Wav1.EndTrack() == S_OK)
			break;
	}
	
	
	printf("work?");
	getch();

	return 0;
}

